<template>
    <div>
        <h2 style="text-align: center;">理财项目列表</h2>
        <FinanCommon v-slot="info">
            <a href="#" @click="UserFinanPage(info.id)">理财</a>
        </FinanCommon>
    </div>
</template>
    
<script setup lang="ts">
import FinanCommon from '../Finans//FinanCommon.vue'
import { useRouter } from 'vue-router';

//创建路由操作对象
const router=useRouter();

//通过路由跳转到用户理财页面
const UserFinanPage=(Fid:number)=>{
    router.push({
        name:"AddUserFinanInfo",
        params:{
            Fid:Fid
        }
    })
}
</script>
    